/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package FileUtils;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Edhi
 */
public class CatsAndDogs {
	public static void main(String[] args){
		List cats = new ArrayList();
		for(int i=0 ; i<7 ; i++)
		cats.add(new Cat[i]);
		cats.add(new Dog(7));
		for(int i=0 ; i<cats.size() ; i++)
		((Cat) cats.get(i)).id();
	}

}
